<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.5"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SWM34S_LVGL7.11_SWMUI: C:/Users/DELL/Desktop/Commit/lvgl/SWM34S_LVGL7.11_SWMUI_20230515/APP/USB/Host/usbh_user.c 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">SWM34S_LVGL7.11_SWMUI<span id="projectnumber">&#160;V7.9</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.5 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_0ca16891106f5a3e9ad635a0d6c5f98f.html">APP</a></li><li class="navelem"><a class="el" href="dir_688c5dfbd99f3a5435dc860226c47105.html">USB</a></li><li class="navelem"><a class="el" href="dir_057b88310ed2bcdb5bf462b58b010ffd.html">Host</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle"><div class="title">usbh_user.c</div></div>
</div><!--header-->
<div class="contents">
<a href="usbh__user_8c.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span> </div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno">   21</span><span class="preprocessor">#include &quot;<a class="code" href="usbh__user_8h.html">usbh_user.h</a>&quot;</span></div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno">   22</span> </div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"><a class="line" href="usbh__user_8c.html#a7d48b44a4f70758a7db6679935be7643">   24</a></span><span class="keyword">volatile</span> <a class="code hl_enumeration" href="usbh__user_8h.html#ae829d35e41400a0bb30a3c0969152083">usb_mode_t</a> <a class="code hl_variable" href="usbh__user_8c.html#a7d48b44a4f70758a7db6679935be7643">USB_State</a> = <a class="code hl_enumvalue" href="usbh__user_8h.html#ae829d35e41400a0bb30a3c0969152083a9667a80a93d18c16f042530a011555aa">USB_MODE_IDLE</a>;</div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno">   25</span> </div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"><a class="line" href="usbh__user_8c.html#a8fdd23e34a1466d25bf11af8ee2f272e">   30</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="usbh__user_8c.html#a8fdd23e34a1466d25bf11af8ee2f272e">isr_btimer_usb_host</a>(<span class="keywordtype">void</span>)</div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno">   31</span>{</div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno">   32</span>    <a class="code hl_define" href="usbh__user_8h.html#a7cc8c7cfcdc9b7b7bda512eb7681a30b">TIMR_USB_HOST</a>-&gt;IF = (1 &lt;&lt; TIMR_IF_TO_Pos); <span class="comment">/* TIMR_INTClr(TIMR_USB_HOST); */</span></div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno">   33</span>    USBH_Process();</div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno">   34</span>}</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno">   35</span> </div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"><a class="line" href="usbh__user_8c.html#ade63404ea1a7943ff51aa273eefb1a3a">   36</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="usbh__user_8c.html#ade63404ea1a7943ff51aa273eefb1a3a">USBH_USR_Init</a>(<span class="keywordtype">void</span>)</div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno">   37</span>{</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno">   38</span>    TIMR_Init(<a class="code hl_define" href="usbh__user_8h.html#a7cc8c7cfcdc9b7b7bda512eb7681a30b">TIMR_USB_HOST</a>, TIMR_MODE_TIMER, CyclesPerUs, 100, 1); <span class="comment">/* 每 100us 触发一次中断执行 USB 处理线程 */</span></div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno">   39</span>    TIMR_Start(<a class="code hl_define" href="usbh__user_8h.html#a7cc8c7cfcdc9b7b7bda512eb7681a30b">TIMR_USB_HOST</a>);</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno">   40</span>    printf(<span class="stringliteral">&quot;USB_H Device Init\n&quot;</span>);</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno">   41</span>}</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno">   42</span> </div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"><a class="line" href="usbh__user_8c.html#a0560290b53592554b6c2c4e823e4bc22">   43</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="usbh__user_8c.html#a0560290b53592554b6c2c4e823e4bc22">USBH_USR_DeInit</a>(<span class="keywordtype">void</span>)</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno">   44</span>{</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno">   45</span>    printf(<span class="stringliteral">&quot;USB_H Device DeInit\n&quot;</span>);</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno">   46</span>}</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno">   47</span> </div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"><a class="line" href="usbh__user_8c.html#afe822d4fecfef2cfb74b272677f33ec2">   48</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="usbh__user_8c.html#afe822d4fecfef2cfb74b272677f33ec2">USBH_USR_DeviceAttached</a>(<span class="keywordtype">void</span>)</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno">   49</span>{</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno">   50</span>    printf(<span class="stringliteral">&quot;USB_H Device Attached\n&quot;</span>);</div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno">   51</span>}</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno">   52</span> </div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"><a class="line" href="usbh__user_8c.html#af8f3a45f077739a17066ac4f1233ad27">   53</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="usbh__user_8c.html#af8f3a45f077739a17066ac4f1233ad27">USBH_USR_Device_DescAvailable</a>(USB_DevDesc_t *devDesc)</div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno">   54</span>{</div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno">   55</span>    printf(<span class="stringliteral">&quot;USB_H Device idVendor: %04X\n&quot;</span>, devDesc-&gt;idVendor);</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno">   56</span>    printf(<span class="stringliteral">&quot;USB_H Device idProduct: %04X\n&quot;</span>, devDesc-&gt;idProduct);</div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno">   57</span>}</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno">   58</span> </div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"><a class="line" href="usbh__user_8c.html#ac8f0596988a0879bf0195779beef6f11">   59</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="usbh__user_8c.html#ac8f0596988a0879bf0195779beef6f11">USBH_USR_Config_DescAvailable</a>(USB_CfgDesc_t * cfgDesc, USB_IntfDesc_t *intfDesc, USB_EpDesc_t *epDesc)</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno">   60</span>{</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno">   61</span>    <span class="keywordflow">switch</span> (intfDesc-&gt;bInterfaceClass)</div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno">   62</span>    {</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno">   63</span>        <span class="keywordflow">case</span> (USB_HID_CLASS) :</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno">   64</span>            printf(<span class="stringliteral">&quot;USB_H Device Interface Type: HID\n&quot;</span>);</div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno">   65</span>        <span class="keywordflow">break</span>;</div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno">   66</span> </div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno">   67</span>        <span class="keywordflow">case</span> (USB_MSC_CLASS) :</div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno">   68</span>            printf(<span class="stringliteral">&quot;USB_H Device Interface Type: MSC\n&quot;</span>);</div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno">   69</span>        <span class="keywordflow">break</span>;</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno">   70</span> </div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno">   71</span>        default :</div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno">   72</span>            printf(<span class="stringliteral">&quot;USB_H Device Interface Type: Unknown Other\n&quot;</span>);</div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno">   73</span>        <span class="keywordflow">break</span>;</div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno">   74</span>    }</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno">   75</span>}</div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno">   76</span> </div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"><a class="line" href="usbh__user_8c.html#a2a408a2bd3428e82b51d41e2f2606ed4">   77</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="usbh__user_8c.html#a2a408a2bd3428e82b51d41e2f2606ed4">USBH_USR_Vendor_String</a>(<span class="keywordtype">char</span> *strVendor)</div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno">   78</span>{</div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno">   79</span>}</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno">   80</span> </div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"><a class="line" href="usbh__user_8c.html#a144834ab1520537eb08e73cab6556bf8">   81</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="usbh__user_8c.html#a144834ab1520537eb08e73cab6556bf8">USBH_USR_Product_String</a>(<span class="keywordtype">char</span> *strProduct)</div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno">   82</span>{</div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno">   83</span>}</div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno">   84</span> </div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"><a class="line" href="usbh__user_8c.html#a871dfc5424f798bc6dd3c09ef8b60936">   85</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="usbh__user_8c.html#a871dfc5424f798bc6dd3c09ef8b60936">USBH_USR_SerialNum_String</a>(<span class="keywordtype">char</span> *strSerialNum)</div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno">   86</span>{</div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno">   87</span>}</div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno">   88</span> </div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"><a class="line" href="usbh__user_8c.html#aed7c31f1e3e69b6467c4ab4c5d1d8c16">   89</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="usbh__user_8c.html#aed7c31f1e3e69b6467c4ab4c5d1d8c16">USBH_USR_EnumerationDone</a>(<span class="keywordtype">void</span>)</div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno">   90</span>{</div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno">   91</span>    printf(<span class="stringliteral">&quot;USB_H Device Enumeration Done\n&quot;</span>);</div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno">   92</span>}</div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno">   93</span> </div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"><a class="line" href="usbh__user_8c.html#a48bc178d64933924c8c684ef7bef2053">   94</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="usbh__user_8c.html#a48bc178d64933924c8c684ef7bef2053">USBH_USR_DeviceNotSupported</a>(<span class="keywordtype">void</span>)</div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno">   95</span>{</div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno">   96</span>    printf(<span class="stringliteral">&quot;USB_H Device Not Supported\n&quot;</span>);</div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno">   97</span>}</div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno">   98</span> </div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"><a class="line" href="usbh__user_8c.html#afe62df0529fbdb3bcbba79db85e4659f">   99</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="usbh__user_8c.html#afe62df0529fbdb3bcbba79db85e4659f">USBH_USR_DeviceDisconnected</a>(<span class="keywordtype">void</span>)</div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno">  100</span>{</div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno">  101</span>    printf(<span class="stringliteral">&quot;USB_H Device Disconnected\n&quot;</span>);</div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno">  102</span>}</div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno">  103</span> </div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"><a class="line" href="usbh__user_8c.html#ab45b1278548f40c0b00dc3144bc2c139">  104</a></span>uint32_t <a class="code hl_function" href="usbh__user_8c.html#ab45b1278548f40c0b00dc3144bc2c139">USBH_USR_UserInput</a>(<span class="keywordtype">void</span>)</div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno">  105</span>{</div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno">  106</span>    <span class="keywordflow">return</span> 1;</div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno">  107</span>}</div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno">  108</span> </div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"><a class="line" href="usbh__user_8c.html#a8a77b9bbbc139a18a3557cead069313c">  109</a></span><span class="keywordtype">int</span> <a class="code hl_function" href="usbh__user_8c.html#a8a77b9bbbc139a18a3557cead069313c">USBH_USR_Application</a>(<span class="keywordtype">void</span>)</div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno">  110</span>{</div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno">  111</span>    <span class="keywordflow">return</span> 0;</div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno">  112</span>}</div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno">  113</span> </div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno">  114</span> </div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"><a class="line" href="usbh__user_8c.html#a865b1913fe55d062e746bc810a114961">  115</a></span>USBH_User_cb_t  <a class="code hl_variable" href="usbh__user_8c.html#a865b1913fe55d062e746bc810a114961">USBH_USR_cb</a> = {</div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno">  116</span>    .Init = <a class="code hl_function" href="usbh__user_8c.html#ade63404ea1a7943ff51aa273eefb1a3a">USBH_USR_Init</a>,</div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno">  117</span>    .DeInit = <a class="code hl_function" href="usbh__user_8c.html#a0560290b53592554b6c2c4e823e4bc22">USBH_USR_DeInit</a>,</div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno">  118</span>    .DeviceAttached = <a class="code hl_function" href="usbh__user_8c.html#afe822d4fecfef2cfb74b272677f33ec2">USBH_USR_DeviceAttached</a>,</div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno">  119</span>    .DeviceDescAvailable = <a class="code hl_function" href="usbh__user_8c.html#af8f3a45f077739a17066ac4f1233ad27">USBH_USR_Device_DescAvailable</a>,</div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno">  120</span>    .ConfigDescAvailable = <a class="code hl_function" href="usbh__user_8c.html#ac8f0596988a0879bf0195779beef6f11">USBH_USR_Config_DescAvailable</a>,</div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno">  121</span>    .VendorString = <a class="code hl_function" href="usbh__user_8c.html#a2a408a2bd3428e82b51d41e2f2606ed4">USBH_USR_Vendor_String</a>,</div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno">  122</span>    .ProductString = <a class="code hl_function" href="usbh__user_8c.html#a144834ab1520537eb08e73cab6556bf8">USBH_USR_Product_String</a>,</div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno">  123</span>    .SerialNumString = <a class="code hl_function" href="usbh__user_8c.html#a871dfc5424f798bc6dd3c09ef8b60936">USBH_USR_SerialNum_String</a>,</div>
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno">  124</span>    .EnumerationDone = <a class="code hl_function" href="usbh__user_8c.html#aed7c31f1e3e69b6467c4ab4c5d1d8c16">USBH_USR_EnumerationDone</a>,</div>
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno">  125</span>    .UserInput = <a class="code hl_function" href="usbh__user_8c.html#ab45b1278548f40c0b00dc3144bc2c139">USBH_USR_UserInput</a>,</div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno">  126</span>    .UserApplication = <a class="code hl_function" href="usbh__user_8c.html#a8a77b9bbbc139a18a3557cead069313c">USBH_USR_Application</a>,</div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno">  127</span>    .DeviceNotSupported = <a class="code hl_function" href="usbh__user_8c.html#a48bc178d64933924c8c684ef7bef2053">USBH_USR_DeviceNotSupported</a>,</div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno">  128</span>    .DeviceDisconnected = <a class="code hl_function" href="usbh__user_8c.html#afe62df0529fbdb3bcbba79db85e4659f">USBH_USR_DeviceDisconnected</a></div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno">  129</span>};</div>
<div class="ttc" id="ausbh__user_8c_html_a0560290b53592554b6c2c4e823e4bc22"><div class="ttname"><a href="usbh__user_8c.html#a0560290b53592554b6c2c4e823e4bc22">USBH_USR_DeInit</a></div><div class="ttdeci">void USBH_USR_DeInit(void)</div><div class="ttdef"><b>Definition:</b> <a href="usbh__user_8c_source.html#l00043">usbh_user.c:43</a></div></div>
<div class="ttc" id="ausbh__user_8c_html_a144834ab1520537eb08e73cab6556bf8"><div class="ttname"><a href="usbh__user_8c.html#a144834ab1520537eb08e73cab6556bf8">USBH_USR_Product_String</a></div><div class="ttdeci">void USBH_USR_Product_String(char *strProduct)</div><div class="ttdef"><b>Definition:</b> <a href="usbh__user_8c_source.html#l00081">usbh_user.c:81</a></div></div>
<div class="ttc" id="ausbh__user_8c_html_a2a408a2bd3428e82b51d41e2f2606ed4"><div class="ttname"><a href="usbh__user_8c.html#a2a408a2bd3428e82b51d41e2f2606ed4">USBH_USR_Vendor_String</a></div><div class="ttdeci">void USBH_USR_Vendor_String(char *strVendor)</div><div class="ttdef"><b>Definition:</b> <a href="usbh__user_8c_source.html#l00077">usbh_user.c:77</a></div></div>
<div class="ttc" id="ausbh__user_8c_html_a48bc178d64933924c8c684ef7bef2053"><div class="ttname"><a href="usbh__user_8c.html#a48bc178d64933924c8c684ef7bef2053">USBH_USR_DeviceNotSupported</a></div><div class="ttdeci">void USBH_USR_DeviceNotSupported(void)</div><div class="ttdef"><b>Definition:</b> <a href="usbh__user_8c_source.html#l00094">usbh_user.c:94</a></div></div>
<div class="ttc" id="ausbh__user_8c_html_a7d48b44a4f70758a7db6679935be7643"><div class="ttname"><a href="usbh__user_8c.html#a7d48b44a4f70758a7db6679935be7643">USB_State</a></div><div class="ttdeci">volatile usb_mode_t USB_State</div><div class="ttdoc">USB 工作状态</div><div class="ttdef"><b>Definition:</b> <a href="usbh__user_8c_source.html#l00024">usbh_user.c:24</a></div></div>
<div class="ttc" id="ausbh__user_8c_html_a865b1913fe55d062e746bc810a114961"><div class="ttname"><a href="usbh__user_8c.html#a865b1913fe55d062e746bc810a114961">USBH_USR_cb</a></div><div class="ttdeci">USBH_User_cb_t USBH_USR_cb</div><div class="ttdoc">USB_Host 用户回调</div><div class="ttdef"><b>Definition:</b> <a href="usbh__user_8c_source.html#l00115">usbh_user.c:115</a></div></div>
<div class="ttc" id="ausbh__user_8c_html_a871dfc5424f798bc6dd3c09ef8b60936"><div class="ttname"><a href="usbh__user_8c.html#a871dfc5424f798bc6dd3c09ef8b60936">USBH_USR_SerialNum_String</a></div><div class="ttdeci">void USBH_USR_SerialNum_String(char *strSerialNum)</div><div class="ttdef"><b>Definition:</b> <a href="usbh__user_8c_source.html#l00085">usbh_user.c:85</a></div></div>
<div class="ttc" id="ausbh__user_8c_html_a8a77b9bbbc139a18a3557cead069313c"><div class="ttname"><a href="usbh__user_8c.html#a8a77b9bbbc139a18a3557cead069313c">USBH_USR_Application</a></div><div class="ttdeci">int USBH_USR_Application(void)</div><div class="ttdef"><b>Definition:</b> <a href="usbh__user_8c_source.html#l00109">usbh_user.c:109</a></div></div>
<div class="ttc" id="ausbh__user_8c_html_a8fdd23e34a1466d25bf11af8ee2f272e"><div class="ttname"><a href="usbh__user_8c.html#a8fdd23e34a1466d25bf11af8ee2f272e">isr_btimer_usb_host</a></div><div class="ttdeci">void isr_btimer_usb_host(void)</div><div class="ttdoc">Timer ISR Callback (USB Host 执行线程)</div><div class="ttdef"><b>Definition:</b> <a href="usbh__user_8c_source.html#l00030">usbh_user.c:30</a></div></div>
<div class="ttc" id="ausbh__user_8c_html_ab45b1278548f40c0b00dc3144bc2c139"><div class="ttname"><a href="usbh__user_8c.html#ab45b1278548f40c0b00dc3144bc2c139">USBH_USR_UserInput</a></div><div class="ttdeci">uint32_t USBH_USR_UserInput(void)</div><div class="ttdef"><b>Definition:</b> <a href="usbh__user_8c_source.html#l00104">usbh_user.c:104</a></div></div>
<div class="ttc" id="ausbh__user_8c_html_ac8f0596988a0879bf0195779beef6f11"><div class="ttname"><a href="usbh__user_8c.html#ac8f0596988a0879bf0195779beef6f11">USBH_USR_Config_DescAvailable</a></div><div class="ttdeci">void USBH_USR_Config_DescAvailable(USB_CfgDesc_t *cfgDesc, USB_IntfDesc_t *intfDesc, USB_EpDesc_t *epDesc)</div><div class="ttdef"><b>Definition:</b> <a href="usbh__user_8c_source.html#l00059">usbh_user.c:59</a></div></div>
<div class="ttc" id="ausbh__user_8c_html_ade63404ea1a7943ff51aa273eefb1a3a"><div class="ttname"><a href="usbh__user_8c.html#ade63404ea1a7943ff51aa273eefb1a3a">USBH_USR_Init</a></div><div class="ttdeci">void USBH_USR_Init(void)</div><div class="ttdef"><b>Definition:</b> <a href="usbh__user_8c_source.html#l00036">usbh_user.c:36</a></div></div>
<div class="ttc" id="ausbh__user_8c_html_aed7c31f1e3e69b6467c4ab4c5d1d8c16"><div class="ttname"><a href="usbh__user_8c.html#aed7c31f1e3e69b6467c4ab4c5d1d8c16">USBH_USR_EnumerationDone</a></div><div class="ttdeci">void USBH_USR_EnumerationDone(void)</div><div class="ttdef"><b>Definition:</b> <a href="usbh__user_8c_source.html#l00089">usbh_user.c:89</a></div></div>
<div class="ttc" id="ausbh__user_8c_html_af8f3a45f077739a17066ac4f1233ad27"><div class="ttname"><a href="usbh__user_8c.html#af8f3a45f077739a17066ac4f1233ad27">USBH_USR_Device_DescAvailable</a></div><div class="ttdeci">void USBH_USR_Device_DescAvailable(USB_DevDesc_t *devDesc)</div><div class="ttdef"><b>Definition:</b> <a href="usbh__user_8c_source.html#l00053">usbh_user.c:53</a></div></div>
<div class="ttc" id="ausbh__user_8c_html_afe62df0529fbdb3bcbba79db85e4659f"><div class="ttname"><a href="usbh__user_8c.html#afe62df0529fbdb3bcbba79db85e4659f">USBH_USR_DeviceDisconnected</a></div><div class="ttdeci">void USBH_USR_DeviceDisconnected(void)</div><div class="ttdef"><b>Definition:</b> <a href="usbh__user_8c_source.html#l00099">usbh_user.c:99</a></div></div>
<div class="ttc" id="ausbh__user_8c_html_afe822d4fecfef2cfb74b272677f33ec2"><div class="ttname"><a href="usbh__user_8c.html#afe822d4fecfef2cfb74b272677f33ec2">USBH_USR_DeviceAttached</a></div><div class="ttdeci">void USBH_USR_DeviceAttached(void)</div><div class="ttdef"><b>Definition:</b> <a href="usbh__user_8c_source.html#l00048">usbh_user.c:48</a></div></div>
<div class="ttc" id="ausbh__user_8h_html"><div class="ttname"><a href="usbh__user_8h.html">usbh_user.h</a></div><div class="ttdoc">USB Host 用户配置</div></div>
<div class="ttc" id="ausbh__user_8h_html_a7cc8c7cfcdc9b7b7bda512eb7681a30b"><div class="ttname"><a href="usbh__user_8h.html#a7cc8c7cfcdc9b7b7bda512eb7681a30b">TIMR_USB_HOST</a></div><div class="ttdeci">#define TIMR_USB_HOST</div><div class="ttdoc">无 OS 下, 为保证响应放到定时器中断内执行</div><div class="ttdef"><b>Definition:</b> <a href="usbh__user_8h_source.html#l00030">usbh_user.h:30</a></div></div>
<div class="ttc" id="ausbh__user_8h_html_ae829d35e41400a0bb30a3c0969152083"><div class="ttname"><a href="usbh__user_8h.html#ae829d35e41400a0bb30a3c0969152083">usb_mode_t</a></div><div class="ttdeci">usb_mode_t</div><div class="ttdoc">枚举 usb 工作状态</div><div class="ttdef"><b>Definition:</b> <a href="usbh__user_8h_source.html#l00033">usbh_user.h:34</a></div></div>
<div class="ttc" id="ausbh__user_8h_html_ae829d35e41400a0bb30a3c0969152083a9667a80a93d18c16f042530a011555aa"><div class="ttname"><a href="usbh__user_8h.html#ae829d35e41400a0bb30a3c0969152083a9667a80a93d18c16f042530a011555aa">USB_MODE_IDLE</a></div><div class="ttdeci">@ USB_MODE_IDLE</div><div class="ttdef"><b>Definition:</b> <a href="usbh__user_8h_source.html#l00035">usbh_user.h:35</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5
</small></address>
</body>
</html>
